package com.freight.tws.mapper;

import com.baomidou.mybatisplus.annotation.InterceptorIgnore;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.freight.tws.api.domain.Order;
import org.apache.ibatis.annotations.Param;

import java.util.List;
import java.util.Map;

/**
 * 订单Mapper接口
 *
 * @author ruoyi
 * @date 2022-02-08
 */
public interface OrderMapper extends BaseMapper<Order> {

    /**
     * 首页折线图
     */
    List<Map<String, String>> orderLineChartCount(@Param("date") String date, @Param("delFlag") int delFlag);


    /**
     * 开票表查询相关订单
     * @param id
     * @return
     */
    @InterceptorIgnore(tenantLine="true")
    List<Order> getBillOrder(@Param("id") String id);

    /**
     * 支付表查询相关订单
     * @param id
     * @return
     */
    @InterceptorIgnore(tenantLine="true")

    List<Order> getPayOrder(@Param("id") String id);
}
